package com.dh.service.impl;

import com.dh.core.common.Result;
import com.dh.manager.redis.RedisUtils;
import com.dh.service.PictureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

@Service
public class PictureServiceImpl implements PictureService {
    @Autowired
    private RedisUtils redisUtils;
    @Override
    public Result selectPictureByKey(String key) {
        /**
         * 判断key的合法性
         * 根据key查询redis()=>mysql
         * 数据为空返回fail
         * 数据存在则修改selectList.select_tip+1
         * 数据存在访问mino返回临时链接地址，存储到redis
         * 并存储pictureUserKey
         *
         */
        boolean selectKey=redisUtils.hasKey(key);
        if(selectKey){
            Set<Object> pictureSet = redisUtils.sGet(key);


        }



        return null;
    }
}
